<?php
/**
 * Created by PhpStorm.
 * User: leo
 * Date: 2018/5/14
 * Time: 14:41
 */
session_start();
include '../classes/conn.php';
$num=$_POST['num'];
$name;
if(isset($_SESSION['admin_num'])){
    $query="select name from teacher where num='{$num}'";
    $res=mysql_query($query);
    while ($row=mysql_fetch_assoc($res)){
        $name=$row['name'];
    }
    echo $name;
}
else echo 'no_login';